import request from '@/utils/request'

// 查询考试安排列表
export function listExamSchedule(query) {
  return request({
    url: '/training/examSchedule/list',
    method: 'get',
    params: query
  })
}

// 查询考试安排详细
export function getExamSchedule(examScheduleId) {
  return request({
    url: '/training/examSchedule/' + examScheduleId,
    method: 'get'
  })
}

// 新增考试安排
export function addExamSchedule(data) {
  return request({
    url: '/training/examSchedule',
    method: 'post',
    data: data
  })
}

// 修改考试安排
export function updateExamSchedule(data) {
  return request({
    url: '/training/examSchedule',
    method: 'put',
    data: data
  })
}

// 删除考试安排
export function delExamSchedule(examScheduleId) {
  return request({
    url: '/training/examSchedule/' + examScheduleId,
    method: 'delete'
  })
}

// 查询考试安排详细
export function getByClassId(trainingClassId) {
  return request({
    url: '/training/examSchedule/getByClassId/' + trainingClassId,
    method: 'get'
  })
}
